From 77330e330e3d04c2124f6b76f1436e30b78086e3 Mon Sep 17 00:00:00 2001 From: Jimi Xenidis Date: Sat, 20 Jan 2007 18:59:32 -0500 Subject: [PATCH] [XEN][POWERPC] more ofd /cpus fixups Correct comment on why we prune secondary processors on the devtree. Get rid of a particularly annoying non-standard cpu property. Signed-off-by: Jimi Xenidis --HG-- extra : transplant_source : %AEPJI%92%3C%D7%D4D%60%22%F3%00I%8D%95%27%1F%FB%D1 --- xen/arch/powerpc/ofd_fixup.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/xen/arch/powerpc/ofd_fixup.c b/xen/arch/powerpc/ofd_fixup.c index d4cae92f31..992ab8c066 100644 --- a/xen/arch/powerpc/ofd_fixup.c +++ b/xen/arch/powerpc/ofd_fixup.c @@ -178,12 +178,21 @@ static ofdn_t ofd_cpus_props(void *m, struct domain *d) if (ofd_boot_cpu == -1) ofd_boot_cpu = c; while (c > 0) { - /* Since we are not MP yet we prune all but the booting cpu */ + /* We do not use the OF tree to identify secondary processors + * so we must prune them from the tree */ if (c == ofd_boot_cpu) { + ofdn_t p; + ibm_pft_size[1] = d->arch.htab.log_num_ptes + LOG_PTE_SIZE; ofd_prop_add(m, c, "ibm,pft-size", ibm_pft_size, sizeof (ibm_pft_size)); + /* get rid of non-standard properties */ + p = ofd_prop_find(m, c, "cpu#"); + if (p > 0) { + ofd_prop_remove(m, c, p); + } + /* FIXME: Check the the "l2-cache" property who's * contents is an orphaned phandle? */ } else -- 2.30.2